package com.fortune.dto.in.mStoreIn;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * TODO m_in_base_info
 * @author ran
 *
 */
public class MStoreInProduceDto {
    @NotNull(message="商品序号不能为空")
    @Min(value = 1,message = "最小值为1")
    @ApiModelProperty(example="商品序号")
    private int number;
    @NotNull(message="入库数量不能为空")
    @Min(value = 0,message = "最小值为0")
    @ApiModelProperty(example="入库数量")
    private int inNum;
    @NotBlank(message="商品ID不能为空")
    @ApiModelProperty(example="商品ID")
    private String produceId;

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getInNum() {
        return inNum;
    }

    public void setInNum(int inNum) {
        this.inNum = inNum;
    }

    public String getProduceId() {
        return produceId;
    }

    public void setProduceId(String produceId) {
        this.produceId = produceId;
    }

    @Override
    public String toString() {
        return "MStoreInProduceDto{" +
                "number=" + number +
                ", inNum=" + inNum +
                ", produceId='" + produceId + '\'' +
                '}';
    }
}
